﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageUser.master" AutoEventWireup="true" CodeFile="CheckPolicy.aspx.cs" Inherits="CheckPolicy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Check Policy</title>
    <style type="text/css">
        .style1
        {
            width: 457px;
        }
        .style4
        {
            width: 236px;
        }
        .style5
        {
            width: 352px;
        }
    .style9
    {
        width: 193px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

            <table style="width:100%;">
            <tr>
                    <td class="style5">
                        Please enter Policy Id:</td>
                    <td class="style4">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style5">
                        <asp:TextBox ID="TextBoxSearch" runat="server" Height="26px" Width="285px" 
                            ValidationGroup="search"></asp:TextBox>
                    </td>
                    <td class="style4">
                        <asp:ImageButton ID="ImageButton2" runat="server" Height="26px" 
                            ImageUrl="~/images/find friend.jpg" Width="27px" 
                            onclick="ImageButton2_Click" ValidationGroup="search" />
                    </td>
                    <td class="style1">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="TextBoxSearch" ErrorMessage="Number Only" 
                            ValidationExpression="^\d+$" ValidationGroup="search" Display="Dynamic">Number Only</asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="TextBoxSearch" Display="Dynamic" ErrorMessage="Required Id"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                           </table>

                        <asp:Panel ID="Panel1" runat="server" Visible="False">
                        <h2>
                                <asp:Label ID="InsuranceTypeLabel" runat="server" 
                                    />
                                    </h2>                                
                                <p>
                                    <table style="width: 100%;">
                                        <tr>
                                            <td class="style9">
                                                <h3 style="width: 172px">
                                                    Total Policy Value:</h3>
                                            </td>
                                            <td>
                                                <asp:Label ID="PolicyValueLabel" runat="server" />
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style9">
                                                <h3>
                                                    Period:
                                                </h3>
                                            </td>
                                            <td>
                                                <asp:Label ID="PeriodLabel" runat="server" />
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style9">
                                                <h3>
                                                    Contract was sign at:</h3>
                                            </td>
                                            <td>
                                                <asp:Label ID="ContractDateLabel" runat="server" />
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style9">
                                                <h3>
                                                    Your Payment Fee:</h3>
                                            </td>
                                            <td>
                                                <asp:Label ID="PaymentFeeLabel" runat="server" />
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style9">
                                                <h3>Status</h3>
                                            </td>
                                            <td>
                                                <asp:Label ID="LabelStatus" runat="server" Text="Label"></asp:Label>
                                            </td>
                                            <td>
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                            </p>
                            &nbsp;<br />
                                &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server">
                            </asp:SqlDataSource>
                            <br />
                                <br />
            </asp:Panel>
            
                                           

</asp:Content>

